import type { DepartData, UploadImage } from "@/types/consult"
import request from "@/utils/request"

/**
 * 医生科室列表
 */
export const departmentListApi = () => {
  return request.get<null, DepartData[]>('/dep/all')
}

/**
 * 上传图片文件
 */
export const uploadImgApi = (filePath: string) => {
  return request.upload<null, UploadImage>('/upload', {
    name: 'file',
    filePath
  })
}
